New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-sub

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-sub

<sub> tag for markdown-it markdown parser.

0.1.0
Source
npm
Version published
Maintainers
1
Created

What is markdown-it-sub?

The markdown-it-sub package is a plugin for the markdown-it Markdown parser that adds support for subscript text. This allows users to include subscript text in their Markdown documents, which is useful for scientific notation, chemical formulas, and other contexts where subscript text is needed.

What are markdown-it-sub's main functionalities?

Subscript Text

This feature allows you to render subscript text in Markdown. By using the tilde (~) syntax, you can convert text to subscript. In the example, 'H~2~O' is converted to 'H<sub>2</sub>O'.

const md = require('markdown-it')();
const sub = require('markdown-it-sub');
md.use(sub);

const result = md.render('H~2~O');
console.log(result); // Outputs: <p>H<sub>2</sub>O</p>

Other packages similar to markdown-it-sub

Keywords

markdown-it-plugin

FAQs

Package last updated on 04 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts